<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>文章列表--layui后台管理模板 2.0</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
	<link rel="stylesheet" href="../../css/my.css" media="all" />
	<link rel="stylesheet" type="text/css" href="../../css/floor_one.css">
</head>
<body class="childrenBody">
	<div class="container">
		<div class="title1">
			<h1>
				一<br>层<br>平<br>面<br>图
			</h1>
			<button name="return" class="btn_re" onclick="javascript:history.back(-1);">返回</button>
		</div>
		<button name="f1" class="btn1" onclick="location.href='${path}/action/seat/getSeats?classroom=101'">软件学院阅览室</button>
	</div>
	<div class="footer"></div>

	
<script type="text/javascript" src="${path}/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="${path}/layui/layui.js"></script>
<script type="text/javascript" src="${path}/js/commons.js"></script>
<script>
layui.use(['form'],function(){
    var form = layui.form;
      
  	//监听提交
	form.on('submit(LAY-form-submit)', function(data) {
  		var index = parent.layer.getFrameIndex(window.name); 
  		$$.ajax({
  			url: '${path}/action/student/save',
  			data: data.field,
  			success: function(json) {
  				parent.layui.table.reload('LAY-table');
  	      		parent.layer.close(index);	
  			}
  		});
	}); 


});
layui.use('laydate', function(){
	  var laydate = layui.laydate;
	  
	  //执行一个laydate实例
	  laydate.render({
			elem: '#ctime'
			,value: new Date() //当前时间
			,isInitValue:true
		});	
	});


</script>
</body>
</html>